package io.renren.modules.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 广告位实体
 *
 * @author zzh
 * @email 862583291@qq.com
 * @date 2019年05月11日 上午15:28:55
 */
@TableName("nideshop_ad_position")
@Data
public class AdPositionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //位置名称
    @NotBlank(message = "用户名不能为空", groups = {AddGroup.class})
    private String name;
    //宽度
    private Integer width;
    //高度
    private Integer height;
    //描述
    private String descr;
}
